<template>
	<view class="">
		<view class="">
			这是父组件
			{{ sonparams }}
		</view>
		<myson :toson="title" @tofather="tofather"></myson>
	</view>
</template>

<script>
	import myson from '@/components/son.vue'
	export default {
		components:{
			myson
		},
		data() {
			return {
				title:'O(∩_∩)O哈哈~',
				sonparams:''
			}
		},
		onLoad(e) {
			console.log(e)
		},
		methods: {
			tofather(params) {
				this.sonparams = params
			}
		}
	}
</script>

<style>
</style>